import Vue from 'vue'
import App from './App.vue'
// 全局注册过滤器
import filters from './plugins/filters'
Object.keys(filters).forEach(item => {
 
 Vue.filter(item, filters[item])
})
//  导入element-ui
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './plugins/element.js'
//  导入进度条
import Nprogress from 'nprogress'
// 导入axios
import axios from "axios"
axios.defaults.baseURL = 'http://localhost:3000/'
axios.interceptors.request.use(config => {
  Nprogress.start()
  return config
})
axios.interceptors.response.use(config => {
  Nprogress.done()
  return config
})
Vue.config.productionTip = false
Vue.prototype.$http = axios
new Vue({
  render: h => h(App),
}).$mount('#app')
